package cn.elead.chaos.sso.server.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Getter;
import lombok.Setter;

/**
 * 单点相关配置
 *
 * @author luopeng
 */
@Setter
@Getter
@ConfigurationProperties(prefix = SsoProperties.PREFIX)
public class SsoProperties {

	public static final String PREFIX = "sso";
	
	// 当没有client使用sso的
	private boolean toDefaultSso = true;
	
	private Integer nodeNumber = 10;
	// 记住我有效时间
	private long rememberMeMaxTimeToLiveInSeconds = 604800;
	// CODE有效时间,单位秒
	private long codeMaxTimeToLiveInSeconds = 20;
	// Token有效时间,单位秒1800
	private long accessTokenMaxTimeToLiveInSeconds = 14400;
	// refreshToken有效时间,单位秒 3600
	private long refreshTokenMaxTimeToLiveInSeconds = 14400;
	// 票据有效时间,单位秒 14400
	private long tgcAndUserInfoMaxTimeToLiveInSeconds = 14400;
}
